package com.fortune.dto.in.BackReturnOrder;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.util.List;

public class ReturnOrderAddDto {
    @NotBlank(message="客户id不能为空")
    @ApiModelProperty(example="客户id")
    private String clientId;
    @NotBlank(message="工单编号不能为空")
    @ApiModelProperty(example="工单编号")
    private String no;
    @NotBlank(message="开单日期不能为空")
    @ApiModelProperty(example="开单日期")
    private String createTime;
    @NotBlank(message="开单方不能为空")
    @ApiModelProperty(example="开单方")
    private String createType;
    @NotBlank(message="开单人不能为空")
    @ApiModelProperty(example="开单人")
    private String createUser;
    List<ReturnOrderDetailDto> returnOrderDetailDto;

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateType() {
        return createType;
    }

    public void setCreateType(String createType) {
        this.createType = createType;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public List<ReturnOrderDetailDto> getReturnOrderDetailDto() {
        return returnOrderDetailDto;
    }

    public void setReturnOrderDetailDto(List<ReturnOrderDetailDto> returnOrderDetailDto) {
        this.returnOrderDetailDto = returnOrderDetailDto;
    }

    @Override
    public String toString() {
        return "ReturnOrderAddDto{" +
                "clientId='" + clientId + '\'' +
                ", no='" + no + '\'' +
                ", createTime='" + createTime + '\'' +
                ", createType='" + createType + '\'' +
                ", createUser='" + createUser + '\'' +
                ", returnOrderDetailDto=" + returnOrderDetailDto +
                '}';
    }
}
